Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.platform.TemplateSources.layouts.contrib--widgets

This contribution is part of XML component org.nuxeo.platform.TemplateSources.layouts.contrib inside nuxeo-template-rendering-web-5.8.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="fileWithTemplate" type="template">
          <labels>
            <label mode="any">label.file.content</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>file:content</field>
            <field>file:filename</field>
            <field>contextData['request/templateId']</field>
          </fields>
          <widgetModes>
            <mode value="create">create</mode>
            <mode value="edit">edit</mode>
            <mode value="view">view</mode>
            <mode value="view">preview</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /widgets/filewithtemplate_widget.xhtml
            </property>
            <property name="availableTemplates">
              #{templateActions.getAvailableOfficeTemplates(value.type)}
            </property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="fileWithTemplate" type="template">
      <labels>
        <label mode="any">label.file.content</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>file:content</field>
        <field>file:filename</field>
        <field>contextData['request/templateId']</field>
      </fields>
      <widgetModes>
        <mode value="create">create</mode>
        <mode value="edit">edit</mode>
        <mode value="view">view</mode>
        <mode value="view">preview</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /widgets/filewithtemplate_widget.xhtml
        </property>
        <property name="availableTemplates">
          #{templateActions.getAvailableOfficeTemplates(value.type)}
        </property>
      </properties>
    </widget>

  </extension>